/*
 * Copyright: Tianjin Berheley Tech Co,.ltd, China
 * berheleyBI
 * com.berheley.bi.service.def -> TableOperationService.java
 * Created on 2009-9-10-上午09:18:51
 */
package com.webframe.service.def;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * 类功能描述：
 *
 * Description: 
 */
public interface ITableOperationService
{
	public void doInsertExecute(String tableName,Map<String,Object> object) throws Exception;
	public void doInsertOrUpdateExecute(Map<String,Object> object) throws Exception;
	public void doDeleteExecuteByID(String tableName ,String fkColumnName,String id) throws Exception;
	public void doDeleteExecuteByID(String tableName ,String id) throws Exception;
	public Map doQueryById(String id,String tableName) throws Exception;
	public List doQueryBySql(String sql) throws Exception;
	public void doDeleteBySql(String sql)throws Exception;
	public void doUpdateExecuteByID(String tableName,String pkColumnName,String id,Map<String,Object> object) throws SQLException;
	public void doUpdateBySql(String sql) throws SQLException;
	public void doInsertExecute(String tableName, List li,String pkColumnName) throws Exception;
	public void doInsertExecute(String tableName, List li) throws Exception;
}
